{if $choose eq 0}
<div><a href="?mod=markattempt&a=nreadytest&p=unit">Unit Tests</a></div><br />
<div><a href="?mod=markattempt&a=nreadytest&p=module">Module Tests</a></div>
<br />
<div><input type="button" name="btn_back" value="Back" onClick="location.href='?mod=htutor'" /></div>
{else}
<form name="frm_nready_test" method="post" action="?mod=markattempt&a=allowready">
<div>
<table width="500" border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse;">
	<tr>
    	<td width="10"></td>
        <td width="10">N.</td>
        <td align="center">Test</td>
    </tr>
    {section name="test" loop=$list_nready_tests}
    <tr>
    	<td><input type="checkbox" name="check_ready[]" value="{$list_nready_tests[test].TestID}" /></td>
        <td align="center">{$smarty.section.test.iteration}</td>
        <td>{$list_nready_tests[test].Title}</td>
    </tr>
    {/section}
</table>
</div>
{if $list_nready_tests}
<br />
<div><input type="submit" name="btn_allowready" value="Mark it available" /></div>
{/if}
<br /><input type="button" name="btn_back" value="Back" onClick="location.href='?mod=markattempt&a=nreadytest'" />
</form>
{/if}